#include "../comm/util.h"
#include "../comm/Log.h"

int main()
{
    string con;

    ns_log::LOG(DEBUG) << ns_util::FileOper::exit("../comm/Log.h") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::size("../comm/Log.h") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::createdir("./a/b/") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::createfile("./a/b/test.txt") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::read("../comm/Log.h", con,8,20) << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::write("./a/b/test.txt", con) << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::write("./a/b/test.txt", "12345",14,5) << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::parentdir("./a/b/test.txt") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::rename("./a/b/test.txt","./a/b/test_.txt") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::removefile("./a/b/test_.txt") << endl;
    ns_log::LOG(DEBUG) << ns_util::FileOper::removedir("./a") << endl;

    return 0;
}